#import "GraciousYonderController.h"
        
#import "GraciousYonderModel.h"
#import "GraciousYonderCell.h"
#import "Masonry.h"

@interface GraciousYonderController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *humbleCuriousGraspCollectionView;
@property (nonatomic, strong) NSMutableArray *zestBlazeDataSource;

@end

@implementation GraciousYonderController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self xenophileNightfallInitview];
	[self dreamerKindredrequestData];
}


//: 初始化页面UI
- (void)xenophileNightfallInitview {
	[self.view addSubview:self.humbleCuriousGraspCollectionView];
	[self.humbleCuriousGraspCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.edges.equalTo(self.view);
	}];
}


- (UICollectionView *)humbleCuriousGraspCollectionView {
    if (!_humbleCuriousGraspCollectionView) {
        UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
        flowLayout.minimumLineSpacing = 10;
        flowLayout.minimumInteritemSpacing = 10;
        flowLayout.itemSize = CGSizeMake(100, 100);
        flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
        
        _humbleCuriousGraspCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:flowLayout];
        _humbleCuriousGraspCollectionView.backgroundColor = UIColor.clearColor;
        _humbleCuriousGraspCollectionView.delegate = self;
        _humbleCuriousGraspCollectionView.dataSource = self;
        _humbleCuriousGraspCollectionView.showsHorizontalScrollIndicator = NO;
        _humbleCuriousGraspCollectionView.showsVerticalScrollIndicator = NO;
        [_humbleCuriousGraspCollectionView registerClass:[GraciousYonderCell class] forCellWithReuseIdentifier:NSStringFromClass([GraciousYonderCell class])];
    }
    return _humbleCuriousGraspCollectionView;
}

//: 懒加载数据模型数组
- (NSMutableArray *)zestBlazeDataSource {
	if (!_zestBlazeDataSource) {
		_zestBlazeDataSource = [NSMutableArray array];
	}
	return _zestBlazeDataSource;
}

//: 获取数据模型
- (void)dreamerKindredrequestData {
	
}

#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.zestBlazeDataSource.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    GraciousYonderCell *marbleResonatePulse = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([GraciousYonderCell class]) forIndexPath:indexPath];
    return marbleResonatePulse;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
